<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 *  Home Class  
 *  
 * @package ANO CMS v2.0 
 * @subpackage News  
 * @author Dương An - 06/09/2013 
 */
class Home extends CI_Controller {

    /**
     * Contrust class
     *  
     * @access public 
     */
    public function __construct() {		
        parent::__construct();
        $this->load->library('smarty3', '', 'smarty');
        $this->load->library('captcha');
        $this->load->library('session');
        $this->load->library('email');
    }
    
    public function index() {        
        $user = $this->session->userdata('user_info');
        if($user)
            $this->smarty->assign('user_info',$user);        
        //print_r($user);exit;
        $this->smarty->view('template/frontend/page/content','content');
	$this->smarty->display('template/frontend/home');
    }	
    
    public function logout()
    {
        $this->session->sess_destroy();
        session_destroy();
        redirect('home');
    }
}

/* End of file admin/cpanel.php */
/* Location: ./system/application/controllers/admin/cpanel.php */